package com.grq.mis.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.beetl.sql.annotation.entity.AutoID;
import org.beetl.sql.annotation.entity.Table;

import java.io.Serializable;
import java.util.Date;

/*
* 用户表
* gen by beetlsql3 2021-11-21
*/
@Data
@NoArgsConstructor
@AllArgsConstructor

@Table(name="t_user")
public class User implements Serializable {

	@AutoID
	private Long id ;
	/**
	 * 用户名
	 */
	private String username ;
	/**
	 * 密码
	 */
	private String password ;
	/**
	 * 名称
	 */
	private String name ;
	/**
	 * 企业名称
	 */
	private String company ;
	/**
	 * 手机号码
	 */
	private String phone ;
	/**
	 * 账号创建时间
	 */
	private Date createTime ;
	/**
	 * 账号是否停用
	 */
	private Boolean isDisable ;
	/**
	 * 关联微信号
	 */
	private String wechatId ;
	/**
	 * 商户名称
	 */
	private Long departmentId ;

	public User(String username, String password, String name, String company, String phone, Date createTime, Boolean isDisable, String wechatId, Long departmentId) {
		this.username = username;
		this.password = password;
		this.name = name;
		this.company = company;
		this.phone = phone;
		this.createTime = createTime;
		this.isDisable = isDisable;
		this.wechatId = wechatId;
		this.departmentId = departmentId;
	}

	//
	private String departmentName;

}
